package com.ctshk.rpc.finance.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDate;
import java.time.LocalDateTime;
import com.ctshk.common.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 团期认款记录
 * </p>
 *
 * @author 叶冠峰
 * @since 2021-06-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_finance_bill_group_record")
@ApiModel(value="FinanceBillGroupRecord对象", description="团期认款记录")
public class FinanceBillGroupRecord extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "认款ID")
    private Long billId;

    @ApiModelProperty(value = "团期ID")
    private Long scheduleId;

    @ApiModelProperty(value = "订单ID")
    private Long saleOrderId;

    @ApiModelProperty(value = "团类型（1旅行团 2定制包团）")
    private Integer groupType;

    @ApiModelProperty(value = "业务类型")
    private Integer businessType;

    @ApiModelProperty(value = "收退款类型（1收款 2退款）")
    private Integer adjustType;

    @ApiModelProperty(value = "科目ID")
    private Long subjectId;

    @ApiModelProperty(value = "科目编码")
    private String subectNumber;

    @ApiModelProperty(value = "科目类型（1：团费，2：保险）")
    private Integer subectType;

    @ApiModelProperty(value = "摘要")
    private String summary;

    @ApiModelProperty(value = "赊额方向（0借 1贷）")
    private Integer type;

    @ApiModelProperty(value = "收退款时间")
    private LocalDateTime addTime;

    @ApiModelProperty(value = "币种ID")
    private Long currencyId;

    @ApiModelProperty(value = "币种")
    private String currency;

    @ApiModelProperty(value = "汇率")
    private BigDecimal exchangeRate;

    @ApiModelProperty(value = "收款类型ID")
    private Long collectionTypeId;

    @ApiModelProperty(value = "收款类型")
    private String collectionType;

    @ApiModelProperty(value = "收款方式ID")
    private Long collectionWayId;

    @ApiModelProperty(value = "收款方式")
    private String collectionWay;

    @ApiModelProperty(value = "金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "本位币金额")
    private BigDecimal hkdAmount;

    @ApiModelProperty(value = "销售ID")
    private Long saleUserId;

    @ApiModelProperty(value = "销售部门编码")
    private String saleDeptCode;

    @ApiModelProperty(value = "成本中心编码")
    private String costCode;

    @ApiModelProperty(value = "收据单号")
    private String receiptNumber;

    @ApiModelProperty(value = "是否导出（0否 1是）")
    private Integer isExport;

    @ApiModelProperty(value = "创建日期")
    private LocalDate createDate;

    @ApiModelProperty(value = "创建人")
    private Long createId;

    @ApiModelProperty(value = "修改人")
    private Long modifiedId;

    @ApiModelProperty(value = "是否删除(0：未删除 1：已删除)")
    private Integer isDeleted;


}
